#ifndef _HTTPREQ_H_
#define _HTTPREQ_H_

#include "cocos2d.h"
#include "network/HttpRequest.h"
#include "network/HttpClient.h"
#include "network/HttpResponse.h"
using namespace cocos2d::network;
using namespace std;
USING_NS_CC;
class HttpReq
{
public:
	HttpReq();
	~HttpReq();

	void Init();
	void HttpGetRequest(string url);
	void HttpPostRequest(string url, string reqData);
	void complete(HttpClient *client, HttpResponse *response);
private:
	static HttpReq* _instance;
public:
	static HttpReq* GetInstance();
	bool m_Requesting;
};
#endif
